package com.storage.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 付款记录表 storage_account_record
 *
 * @author ruoyi
 * @date 2019-09-20
 */
@ApiModel(value = "付款记录")
public class StorageAccountRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private Long id;
    /**
     * 用户id(下级代理商id，通常是下级给上级钱)
     */
    @ApiModelProperty(value = "用户id(下级代理商id，通常是下级给上级钱)")
    private Long userId;
    /**
     * 上级代理商id(线下付款以后操作人是上级代理商)
     */
    @ApiModelProperty(value = "上级代理商id(线下付款以后操作人是上级代理商)")
    private Long agentId;
    /**
     * 付款金额
     */
    @ApiModelProperty(value = "付款金额")
    private BigDecimal money;
    /**
     * 来源(order-订单预付款;under_line-线下付款)
     */
    @ApiModelProperty(value = "源(order-订单预付款;under_line-线下付款")
    private String source;
    /**
     * 付款备注
     */
    @ApiModelProperty(value = "付款备注")
    private String remark;

    /**
     * 1-代理商;2-店铺
     */
    @ApiModelProperty(value = "1-代理商;2-店铺")
    private Integer type;

    /**
     * 1-代理商;2-店铺
     */
    @ApiModelProperty(value = "订单code")
    private String orderCode;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setAgentId(Long agentId) {
        this.agentId = agentId;
    }

    public Long getAgentId() {
        return agentId;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getSource() {
        return source;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
